﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TM.Common.Extensions
{
    public static class ArrayExt
    {
        public static int[] ToIntArray(this string[] value)
        {
            return value.Select(item => int.Parse(item)).ToArray();
        }

        public static Guid[] ToGuidArray(this string[] value)
        {
            return value.Select(item => new Guid(item)).ToArray();
        }
    }
}
